<#if !parameters.onclick?exists && !parameters.popupOptions?exists>
	<#assign popupOptions = "{" />
	<#if parameters.url?exists>
		<#assign popupOptions = popupOptions + "url:'" + parameters.url?html + "'," />
	</#if>
	<#if parameters.title?exists>
		<#assign popupOptions = popupOptions + "title:'" + parameters.title?html + "'," />
	</#if>
	<#if parameters.width?exists>
		<#assign popupOptions = popupOptions + "width:" + parameters.width?html + "," />
	</#if>
	<#if parameters.height?exists>
		<#assign popupOptions = popupOptions + "height:" + parameters.height?html + "," />
	</#if>
	<#if parameters.top?exists>
		<#assign popupOptions = popupOptions + "top:" + parameters.top?html + "," />
	</#if>
	<#if parameters.left?exists>
		<#assign popupOptions = popupOptions + "left:" + parameters.left?html + "," />
	</#if>
	<#if parameters.closeCallback?exists>
		<#assign popupOptions = popupOptions + "closeCallback:" + parameters.closeCallback?html + "," />
	</#if>
	<#if parameters.returnCallback?exists>
		<#assign popupOptions = popupOptions + "returnCallback:" + parameters.returnCallback?html + "," />
	</#if>
	<#if parameters.dialogArguments?exists>
		<#assign popupOptions = popupOptions + "dialogArguments:" + parameters.dialogArguments?html + "," />
	</#if>
	<#if parameters.resizable?exists>
		<#assign popupOptions = popupOptions + "resizable:" + parameters.resizable?html + "," />
	</#if>
	<#if parameters.closable?exists>
		<#assign popupOptions = popupOptions + "closable:" + parameters.closable?html + "," />
	</#if>
	<#if parameters.minimizable?exists>
		<#assign popupOptions = popupOptions + "minimizable:" + parameters.minimizable?html + "," />
	</#if>
	<#if parameters.maximizable?exists>
		<#assign popupOptions = popupOptions + "maximizable:" + parameters.maximizable?html + "," />
	</#if>
	<#if parameters.draggable?exists>
		<#assign popupOptions = popupOptions + "draggable:" + parameters.draggable?html + "," />
	</#if>
	<#assign popupOptions = popupOptions + "modal:true}" />
	${tag.addParameter('popupOptions', popupOptions)}
	${tag.addParameter('dialogArguments', null)}
</#if>
<#include "/${parameters.templateDir}/geni/popup.ftl" />

